<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/clients.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:44 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>{$sysname} - 管理员设置</title>

    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-sm-8" style="width: 100%">
                <div class="ibox">
                    <div class="ibox-content">
                        <h2>管理员设置</h2>

                            <form action="{:U('User/search')}" method="post" name="myform" enctype="multipart/form-data">
                                <div class="input-group">
                                    <input type="hidden" name="type" value="adminset" class="input form-control">
                                    <input type="text" placeholder="输入用户名查找" value="{$keyword}" name="keyword" class="input form-control">
                            <span class="input-group-btn">
                                <button type="submit" class="btn btn btn-primary"> <i class="fa fa-search"></i> 搜索</button>
                            </span>
                                </div>
                            </form>

                        <div class="clients-list">
                            <ul class="nav nav-tabs">
                                <span class="pull-right small text-muted" style="display: none">{$admincount} 个管理员</span>
                                <span class="pull-right small text-muted"> <a class="label label-primary"  href="{:U('User/adminadd')}" style="top: 10px;position: relative">添加管理员</a></span>
                                <li class="active"><a data-toggle="tab" href="#tab-1"><i class="fa fa-user"></i>管理员列表</a>
                                </li>
                            </ul>
                            <div class="tab-content">
                                <div id="tab-1" class="tab-pane active">
                                    <div class="full-height-scroll">
                                        <div class="table-responsive">
                                            <table class="table table-striped table-hover">
                                                <tbody>
                                                <th>管理账号</th>
                                                <th>是否超级管理员</th>
                                                <th>操作</th>
                                                <foreach name="adminlist" item="item">
                                                    <tr>
                                                        <td><a data-toggle="tab" href="#contact-1" class="client-link">{$item.name}</a></td>
                                                        <td><if condition="$item.adminpower eq '0'"><font style="color: #1ab394">超级管理员</font><else/>管理员</if></td>
                                                        <td class="client-status" style="cursor: pointer">
                                                            <a href="{:U('User/adminedit',array('id'=>$item['id']))}">
                                                            <span class="label label-primary" style="margin-right: 10px">
                                                            编辑
                                                            </span>
                                                            </a>
                                                            <span class="label label-primary" onclick="delectthis({$item.id})" style="<if condition="$item.adminpower eq 0">display:none </if>">
                                                            删除
                                                            </span>
                                                        </td>
                                                    </tr>

                                                </foreach>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="js/content.min.js?v=1.0.0"></script>
    <script>
        $(function(){$(".full-height-scroll").slimScroll({height:"100%"})});
    </script>
    <script>
        function delectthis(id){
            var res = confirm('请注意！删除后不可恢复。确定要删除此用户吗？');
            if(res == true){
                //window.location.href="index.php?m=Admin&c=User&a=deleteadmin&id="+id;
                window.location.href="{:U('User/deleteadmin')}"+"&id="+id;
            }
        }
    </script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/clients.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:44 GMT -->
</html>
